package cn.bonoon.kernel.web.html.grid;

import cn.bonoon.kernel.expression.QueryExpressionParameter;

public class ComponenetParameter extends QueryExpressionParameter{
	
	private final String component;
	
	public ComponenetParameter(String name, String component, String value) {
		super(name, value);
		this.component = component;
	}

	@Override
	public void parameter(StringBuilder params) {
		params.append(name).append(":(");
		params.append(component).append("==null?null:");
		params.append(component).append('.').append(value).append(')');
	}
}
